<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%= pageTitle %></title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <div class="container">
    <h1>登录</h1>
    
    <% if (error) { %>
      <div class="error-message">
        <%= error %>
      </div>
    <% } %>
    
    <div class="form-container">
      <form action="/login" method="POST">
        <div class="form-group">
          <label for="username">用户名:</label>
          <input type="text" id="username" name="username" required>
        </div>
        
        <div class="form-group">
          <label for="password">密码:</label>
          <input type="password" id="password" name="password" required>
        </div>
        
        <div class="form-group">
          <button type="submit" class="btn">登录</button>
        </div>
      </form>
      
      <div class="form-footer">
        <p>演示账号:</p>
        <ul>
          <li>用户名: user1, 密码: password1</li>
          <li>用户名: user2, 密码: password2</li>
        </ul>
        <a href="/" class="btn btn-link">返回首页</a>
      </div>
    </div>
  </div>
</body>
</html>